/* Portfolio Page Styles */

html {
    scroll-behavior: smooth;
}

.portfolio-hero {
    height: 60vh;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 32px 40px 32px;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #814bc8 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0.08;
    z-index: 0;
}

.portfolio-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.portfolio-hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #814bc8 50%, #c84baf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.portfolio-hero p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    text-decoration: none;
}

/* Portfolio Category */
.portfolio-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 48px;
    color: #fff;
    position: relative;
    padding-bottom: 20px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #814bc8 0%, #c84baf 100%);
    border-radius: 2px;
}

/* Portfolio Grid Section */
.portfolio-section {
    padding: 80px 32px;
    background: #000;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
    border: 1px solid #1f1f25;
    background: #111;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(129, 75, 200, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
    border-color: rgba(129, 75, 200, 0.5);
}

.portfolio-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    overflow: hidden;
    position: relative;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(129, 75, 200, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-info {
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 18, 0.8);
    backdrop-filter: blur(10px);
}

.portfolio-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.portfolio-year {
    font-size: 14px;
    color: #814bc8;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* CTA Section */
.portfolio-cta-section {
    padding: 100px 32px;
    background: linear-gradient(135deg, #0a0a0a 0%, #040406 50%, #0a0a0a 100%);
    text-align: center;
}

.portfolio-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #814bc8 50%, #c84baf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-cta-content p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 32px;
}

/* Companies CTA Button Container */
.companies-cta {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.companies-cta .cta-button {
    padding: 15px 48px;
    font-size: 18px;
    background: linear-gradient(90deg, #814bc8 0%, #c84baf 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
}

.companies-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(129, 75, 200, 0.35);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero {
        height: 50vh;
        padding: 100px 20px 40px 20px;
    }

    .portfolio-hero h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .portfolio-hero p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .portfolio-section {
        padding: 50px 16px;
    }

    .portfolio-category {
        margin-bottom: 50px;
    }

    .category-title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }

    .portfolio-item-wide {
        grid-column: span 1;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-info {
        padding: 16px 16px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .portfolio-info h3 {
        font-size: 16px;
    }

    .portfolio-year {
        font-size: 12px;
    }

    .portfolio-cta-section {
        padding: 60px 20px;
    }

    .portfolio-cta-content h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .portfolio-cta-content p {
        font-size: 15px;
    }
    .companies-cta .cta-button {
        padding: 10px 24px;
        font-size: 14px;
    }}

@media (max-width: 480px) {
    .portfolio-hero {
        height: 45vh;
        padding: 70px 16px 30px 16px;
    }

    .portfolio-hero h1 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .portfolio-hero p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .portfolio-section {
        padding: 35px 12px;
    }

    .portfolio-category {
        margin-bottom: 35px;
    }

    .category-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .category-title::after {
        width: 40px;
        height: 2px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .portfolio-item-wide {
        grid-column: span 1;
    }

    .portfolio-image {
        height: 160px;
    }

    .portfolio-info {
        padding: 12px 12px;
        gap: 8px;
    }

    .portfolio-info h3 {
        font-size: 14px;
    }

    .portfolio-year {
        font-size: 11px;
    }

    .portfolio-cta-section {
        padding: 40px 16px;
    }

    .portfolio-cta-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .portfolio-cta-content p {
        font-size: 13px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .companies-cta .cta-button {
        padding: 7px 14px;
        font-size: 12px;
    }
}

